﻿#ifndef _CADRE_H
#define _CADRE_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QSqlRelationalTableModel>

namespace Ui {
    class CCadre;
}

class CCadre : public QWidget {
    Q_OBJECT

public:
    explicit CCadre(QWidget *parent = 0);

    ~CCadre();

    void openTable();

    void carRowDoubleClicked(const QModelIndex &);

private
    slots:
            void

    on_btn_select_clicked();

    void on_tb_cadre_clicked(const QModelIndex &index);

    void on_tb_cadre_doubleClicked(const QModelIndex &index);

private:
    Ui::CCadre *ui;
    QSqlQuery *query;
    QSqlRelationalTableModel *model;
    signals:
            void
    sendSignal(QString, QString
    );
};

#endif // _CADRE_H
